<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>登录之后的页面</title>
</head>
<body>

<h1>Shiro登录认证后的主页面</h1>

<p>登录用户为: <span th:text="${session.user}"></span></p>

<a shiro:hasRole="admin" href="/myController/userLoginRoles">角色验证</a>
<br>
<a shiro:hasPermission="user:delete" href="/myController/userLoginPermissions">权限验证-删除</a>
<br>
<a shiro:hasPermission="user:select" href="/myController/userLoginPermissionsd">权限验证-查询</a>
<br>
<a href="/logout">登出</a>

</body>

</html>